package com.cakin.servlet;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @ClassName: ShowSevlet
 * @Description: 测试乱码Servlet
 * @Date: 2020/6/14
 * @Author: cakin
 */
public class ShowServlet extends HttpServlet {
    /**
     * 功能描述：构造乱码
     *
     * @author cakin
     * @date 2020/6/14
     * @param req 请求
     * @param resp 响应
     * @throws IOException 异常
     */
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
        resp.getWriter().write("解决过滤器乱码问题");
    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
        doGet(req, resp);
    }
}
